package com.hospital.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Employee {
    private Integer id;
    private String name;
    private Integer sex;
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接收
    private Date birthday;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//返回
    private Date create_time;
    private Integer grade_id;
    private Integer job_id;
    private Integer dp_id;
    private String pic;

    private String department_name;
    private String job_name;
    private String grade_name;
    private Double total_wages;
}
